vcText2DSet

A geometry set used for generating 2D text. Unlike 3D text, 2D text is rendered directly on screen by converting a position vector to screen coordinates. Furthermore, 2D text supports an inherited Billboard property, thereby text can always face camera and be right-side up in 3D world.

See in: Overview

Module: vcGeometry

Parent: vcGeometrySet

Children -

Referenced by: -

Properties

Learn how to use properties here. The properties are also inherited from the parent class.

NameTypeAccessDescription
OffsetXIntegerRWGets or sets an offset (in pixels) for horizontal axis when text is projected on screen.
OffsetYIntegerRWGets or sets an offset (in pixels) for vertical axis when text is projected on screen.
PositionvcVectorRWGets or sets the position vector of text in 3D world.
TextStringRWGets or sets a string of characters to render as one line of text.

Methods

Learn how to use methods here. The methods are also inherited from the parent class.

NameReturn TypeParametersDescription
getTextHeightIntegerNoneGets the calculated height of text in pixels.
getTextWidthIntegerNoneGets the calculated width of text in pixels.
updateNoneNoneUpdates the geometry of text in 3D world.